<template>
	<view>
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:'',
			}
		},
		onLoad() {
			this.getDefaultImg()
		},
		methods: {
			getDefaultImg() {
				this.$api.sendRequest({
					url: '/api/diyview/shouyedetail',
					success: res => {
						console.log(res)
						var desc = res.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ')
						this.content=desc
					}
				});
			},
		}
	}
</script>

<style>

</style>
